package com.magic.gre.adapter;

import android.content.Context;

import com.magic.gre.R;
import com.magic.gre.entity.MeanBean;
import com.noname.lib_base_java.adapter.CommonAdapter;
import com.noname.lib_base_java.adapter.ViewHolder;

import java.util.List;

/**
 * Author: Lmoumou
 * Date: 2019-01-15 21:03
 * 文件名: MeanAdapter
 * 描述:
 */
public class MeanAdapter extends CommonAdapter<MeanBean> {
    public MeanAdapter(Context mContext, List<MeanBean> mData) {
        super(mContext, mData, R.layout.item_mean);
    }

    @Override
    protected void bindData(ViewHolder holder, int position) {

        MeanBean bean = mData.get(position);
//        if (position < mData.size() - 2) {
//            holder.setText(R.id.name_tv, "(" + (position+1) + ")" + bean.getName());
//        } else {
//
//        }
        holder.setText(R.id.name_tv, bean.getName());
        holder.setText(R.id.content_tv, bean.getContent());
    }
}
